package manager;

import java.util.Map;

import render.Animation;

/**
 * 
 * @author Passerby
 *
 */
public class AnimationManager {
	
	Map<String, Animation> animMap = null;
	
	private static AnimationManager instance = null;
	
	private AnimationManager() {
		
	}
	
	public static AnimationManager get() {
		if (instance == null) {
			instance = new AnimationManager();
		}
		return instance;
	}
	
	public void addAnim(String name, Animation anim) {
		animMap.put(name, anim);
	}
	
	public Animation getAnim(String name) {
		return animMap.get(name);
	}
}
